<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
  <title>JSP - Hello World</title>
</head>
<body>
<h1><%= "Hello World!" %></h1>
<br/>
<a href="hello-servlet">Hello Servlet</a>
<%
  long number=0;
  if (application.getAttribute("n")!=null){
    number=(Long)application.getAttribute("n");
  };
  number++;
  application.setAttribute("n",number);
  out.print("<h1>系统当前访问数："+number+ "</h1>");
%>
</body>
</html>